package com.hualan.service.impl;

import com.hualan.bean.PanghuCommunity;
import com.hualan.dao.CommunityUpdateDao;
import com.hualan.dao.impl.CommunityUpdateDaoImpl;
import com.hualan.service.CommunityUpdateService;


public class CommunityUpdateServiceImpl implements CommunityUpdateService {
    private CommunityUpdateDao communityUpdateDao;

    public CommunityUpdateServiceImpl() {
        communityUpdateDao = new CommunityUpdateDaoImpl();
    }

    @Override
    public int addCommunity(String communityName, String communityProvince, String communityCity, String communityDistrict, Integer communityAreaCode, String communityLatitude, String communityLongitude, String communityAddress, String communityCoordinates) {
        return communityUpdateDao.addCommunity(communityName, communityProvince, communityCity, communityDistrict, communityAreaCode, communityLatitude, communityLongitude, communityAddress, communityCoordinates);
    }
    @Override
    public int updateCommunity(PanghuCommunity community) {
        return communityUpdateDao.updateCommunity(community);
    }
}
